import { TJshortcuts } from '@/utils/config'
export const formItems = [
  {
    filed: 'userInfo',
    type: 'input',
    label: '用户信息',
    placeholder: '请输入用户姓名/手机号/卡号'
  },
  {
    filed: 'acName',
    type: 'input',
    label: '活动名称'
  },
  {
    filed: 'status',
    type: 'select',
    label: '核销状态',
    options: [{
      label: '待核销',
      value: '0'
    }, {
      label: '已核销',
      value: '1'
    }, {
      label: '已取消',
      value: '2'
    }]
  },
  {
    filed: 'times',
    type: 'daterange',
    label: '报名时间',
    pickerOptions: {
      shortcuts: TJshortcuts,
      disabledDate(time) {
        var curDate = new Date(new Date().toLocaleDateString()).getTime()
        var preDate = new Date(curDate + 24 * 60 * 60 * 1000 - 1)
        return time.getTime() > preDate
      }
    }
  }
]
export const queryFormConfig = {
  formItems,
  online: true
}
